/* 提示框基础样式 */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
}

/* 提示框图标 */
.alert-icon {
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-icon svg {
    width: 20px;
    height: 20px;
}

/* 提示框内容 */
.alert-content {
    flex: 1;
}

/* 提示框标题 */
.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* 提示框消息 */
.alert-message {
    font-size: var(--font-size-sm);
}

/* 提示框关闭按钮 */
.alert-close {
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: 1rem;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.alert-close:hover {
    opacity: 1;
}

/* 提示框变体 */
.alert-primary {
    color: var(--color-primary-dark);
    background-color: rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.2);
}

.alert-secondary {
    color: var(--color-secondary-dark);
    background-color: rgba(52, 168, 83, 0.1);
    border-color: rgba(52, 168, 83, 0.2);
}

.alert-success {
    color: var(--color-success);
    background-color: rgba(52, 168, 83, 0.1);
    border-color: rgba(52, 168, 83, 0.2);
}

.alert-danger {
    color: var(--color-danger);
    background-color: rgba(234, 67, 53, 0.1);
    border-color: rgba(234, 67, 53, 0.2);
}

.alert-warning {
    color: #856404;
    background-color: rgba(251, 188, 5, 0.1);
    border-color: rgba(251, 188, 5, 0.2);
}

.alert-info {
    color: var(--color-primary);
    background-color: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.2);
}

/* 提示框动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.alert-fade-in {
    animation: fadeIn 0.3s forwards;
}

.alert-fade-out {
    animation: fadeOut 0.3s forwards;
}

/* 提示框位置 */
.alert-fixed {
    position: fixed;
    z-index: var(--z-tooltip);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

.alert-top-right {
    top: 1rem;
    right: 1rem;
}

.alert-top-left {
    top: 1rem;
    left: 1rem;
}

.alert-bottom-right {
    bottom: 1rem;
    right: 1rem;
}

.alert-bottom-left {
    bottom: 1rem;
    left: 1rem;
}

.alert-top-center {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.alert-bottom-center {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

/* 提示框组 */
.alert-container {
    position: fixed;
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-container.top-right {
    top: 1rem;
    right: 1rem;
    align-items: flex-end;
}

.alert-container.top-left {
    top: 1rem;
    left: 1rem;
    align-items: flex-start;
}

.alert-container.bottom-right {
    bottom: 1rem;
    right: 1rem;
    align-items: flex-end;
}

.alert-container.bottom-left {
    bottom: 1rem;
    left: 1rem;
    align-items: flex-start;
}

.alert-container.top-center {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.alert-container.bottom-center {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
} 